package edu.ccut.saturn.component.impl;

import java.util.ArrayList;
import java.util.List;

import edu.ccut.saturn.component.IAuthorityResourceInfo;
import edu.ccut.saturn.component.IAuthorityRoleInfo;

public class SaturnRoleInfo implements IAuthorityRoleInfo {
	
	private String roleKey;
	
	private String name;
	
	private String description;
	
	private List<IAuthorityResourceInfo> resourceInfos;

	public SaturnRoleInfo(String roleKey, String name, String description) {
		this.roleKey = roleKey;
		this.name = name;
		this.description = description;
		this.resourceInfos = new ArrayList<IAuthorityResourceInfo>();
	}
	
	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#getRoleKey()
	 */
	public String getRoleKey() {
		return roleKey;
	}

	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#setRoleKey(java.lang.String)
	 */
	public void setRoleKey(String roleKey) {
		this.roleKey = roleKey;
	}

	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#getName()
	 */
	public String getName() {
		return name;
	}

	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#setName(java.lang.String)
	 */
	public void setName(String name) {
		this.name = name;
	}

	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#getDescription()
	 */
	public String getDescription() {
		return description;
	}

	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#setDescription(java.lang.String)
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#getResourceInfos()
	 */
	public List<IAuthorityResourceInfo> getResourceInfos() {
		return resourceInfos;
	}

	/* (non-Javadoc)
	 * @see edu.ccut.saturn.component.impl.IRoleInfo#setResourceInfos(java.util.List)
	 */
	public void setResourceInfos(List<IAuthorityResourceInfo> resourceInfos) {
		this.resourceInfos = resourceInfos;
	} 
}
